package com.springboot.springboot03yml.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfig {
    @Value("${myapp.name}")
    private String name;
    @Value("${myapp.password}")
    private String password;

    public void show()
    {
        System.out.println("name:"+name);
        System.out.println("password:"+password);
    }
}
